←Select platform

ProcessStream Method

Summary

Determines whether the ServiceStreamer<TStreamedData,TServiceState> should continue streaming by calling the OnCallService method.

Syntax

C#
VB
C++
protected abstract bool ProcessStream( 
   int currentStreamNumber, 
   TServiceState state 
) 
  
Protected MustOverride Function ProcessStream( _ 
   ByVal currentStreamNumber As Integer, _ 
   ByVal state As TServiceState _ 
) As Boolean 
protected: 
abstract bool ProcessStream(  
   int currentStreamNumber, 
   _TServiceState^_ state 
)  

Parameters

currentStreamNumber
The number of the current concurrent stream to process.

state
User state information.

Return Value

true to continue streaming; otherwise false.

Remarks

This function will be called before calling the OnCallService method.

When you receive all the data from the web service and you don't need to perform further streaming, return false from this method. For example, if you set the StreamsLimit to 4 and you have received all data in the 3rd call, then return false when the currentStreamNumber is 4.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.